import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
	message: [{ required: true, message: "报警信息为必填项", trigger: "blur" }],
	factoryNum: [{ required: true, message: "厂区号为必填项", trigger: "blur" }],
	alarmBehaveId: [{ required: true, message: "报警行为为必填项", trigger: "change" }],
});
